package intermedia;

import semantica.SymbolTable;

public abstract class Edge {

	protected Attributes attributes;
	protected Node src, dst;
	public boolean visited;

	public Edge(Node _src, Node _dst, SymbolTable st) {
		this.src = _src;
		this.dst = _dst;
		attributes = new Attributes();
		attributes.addAtributes(st.getEdgeAttributes());
		visited = false;
	}

	public void addAttributes(Attributes attr) {
		attributes.addAtributes(attr);
	}

	public Node getSrc() {
		return src;
	}

	public Node getDst() {
		return dst;
	}

	public Attributes getAttributes() {
		return attributes;
	}

}
